#include "FleshTile.h"
#include "ImgMgr.h"
#include "Level.h"

FleshTile::FleshTile() : Tile()
{

}

void FleshTile::init(const sf::Vector2f position, ImgMgr *imageManager, Level *level)
{
	m_skin = imageManager->getSprite(1);
	if(level->getTile((position.x / 32), (position.y / 32) - 1, 1) == NULL)
        m_skin = imageManager->getSprite(2);

    m_skin.setScale(2, 2);
	m_name = "Flesh";
	m_skin.setPosition(position);
	Tile::init(position, imageManager, level);
}

bool FleshTile::block() const
{
	return true;
}
